home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14940 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.lang.c++
  2. Path: usenet.eel.ufl.edu!warwick!bsmail!talisker!nathan
  3. From: nathan@pact.srf.ac.uk (Nathan Sidwell)
  4. Subject: Re: Operators <<= and >>=
  5. Message-ID: <Dp93vp.3sx@uns.bris.ac.uk>
  6. Sender: usenet@uns.bris.ac.uk (Usenet news owner)
  7. Nntp-Posting-Host: talisker.pact.srf.ac.uk
  8. Organization: a little blue green planet
  9. X-Newsreader: TIN [version 1.2 PL2]
  10. References: <4iva5m$4q5@access4.digex.net>
  11. Date: Tue, 2 Apr 1996 20:07:01 GMT
  12.  
  13. Mr. Blue (car@access4.digex.net) wrote:
  14.  
  15. : When / why would one overload the operators <<= and >>=  ?
  16. If you've overloaded either the << operator or the = operator, you
  17. might well want to overload <<= to have the effect of overloaded << and
  18. overloaded =. (Remember, in the abscense of overloading, the <<= operator
  19. will have the default behaviour from the parent class, not the 'natural'
  20. behaviour you might assume.)
  21.  
  22. nathan
  23.  
  24. --
  25. Nathan Sidwell                         Holder of the Xmris home page
  26. Chameleon Architecture Group at SGS-Thomson, formerly Inmos
  27. http://www.pact.srf.ac.uk/~nathan/                  Tel 0117 9707182
  28. nathan@inmos.co.uk or nathan@bristol.st.com or nathan@pact.srf.ac.uk
  29.